<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        let arr = [1, 2, 3];
        let [a, b, c] = arr;
        console.log(a);
        console.log(b);
        console.log(c);
        let obj = {
            name: '小明',
            sex: '男'
        };
        let {
            name,
            sex
        } = obj;
        let {
            name: myName,
            sex: mySex
        } = obj;
        console.log(name);
        console.log(sex);
        console.log(myName);
        console.log(mySex);
    </script>
</head>

<body>

</body>

</html>